Utility

public class Utility

This object contains useful general utilities.

Functions

encodeBase64
Link copied to clipboard
final String encodeBase64(ByteArray input)
hashString
Link copied to clipboard
final String hashString(String input, String algorithm)
isOnline
Link copied to clipboard
final Boolean isOnline(Context context)
sha256
Link copied to clipboard
final String sha256(String $self)
versionCompare
Link copied to clipboard
final Integer versionCompare(String v1, String v2)
This method compares two versions of the app, v1 and v2, returning the result of this comparison as an Int value.

Properties

INSTANCE
Link copied to clipboard
public final static Utility INSTANCE